package cn.congzhou.crm.service;

import cn.congzhou.crm.domain.Employee;
import cn.congzhou.crm.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IEmployeeService {

    int deleteByPrimaryKey(Long id);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    void saveOrUpdate(Employee emp, Long[] ids);

    PageInfo<Employee> selectByPage(QueryObject qo);

    void checkLogin(String name, String password);

    void batchDelete(Long[] ids);

    Employee selectByName(String saleMan);
}
